package day20171116;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

/**
 * Created by 14394 on 2017/11/16.
 */
public class TestPost {
    public static void main(String[] args) {
        Connection conn=Jsoup.connect("http://www.mafengwo.cn/mdd/base/map/getCityList");
        conn.data("mddid","10517");
        conn.data("page","2");
        conn.referrer("http://www.mafengwo.cn/mdd/map/10517.html");
        try {
            Document d=conn.post();
            System.out.println(d.text());
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
